package dbaproj.pojo;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Aruhaz {
	private long id;
	private String nev;
	private String telefon;
	private String email;
	private String varos;
	private String kerulet;
	private String utca;
	private String hazszam;
	
	public Aruhaz(long id, String nev, String telefon, String email, String varos, String kerulet, String utca, String hazszam) {
		this.id = id;
		this.nev = nev;
		this.telefon = telefon;
		this.email = email;
		this.varos = varos;
		this.kerulet = kerulet;
		this.utca = utca;
		this.hazszam = hazszam;
	}
	
	public Aruhaz(ResultSet rs) {
	  try {
			id = rs.getLong(1);
			nev = rs.getString(2);
			telefon = rs.getString(3);
			email = rs.getString(4);
			varos = rs.getString(5);
			kerulet = rs.getString(6);
			utca = rs.getString(7);
			hazszam = rs.getString(8);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getNev() {
		return nev;
	}
	public void setNev(String nev) {
		this.nev = nev;
	}
	public String getTelefon() {
		return telefon;
	}
	public void setTelefon(String telefon) {
		this.telefon = telefon;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getVaros() {
		return varos;
	}
	public void setVaros(String varos) {
		this.varos = varos;
	}
	public String getKerulet() {
		return kerulet;
	}
	public void setKerulet(String kerulet) {
		this.kerulet = kerulet;
	}
	public String getUtca() {
		return utca;
	}
	public void setUtca(String utca) {
		this.utca = utca;
	}
	public String getHazszam() {
		return hazszam;
	}
	public void setHazszam(String hazszam) {
		this.hazszam = hazszam;
	}
}
